package demoMod.invincibleOne.modifiers;

import basemod.abstracts.AbstractCardModifier;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.cards.CardGroup;
import demoMod.invincibleOne.cards.invincible.AbstractInvincibleCard;

public class ExhaustAtStartOfCombatMod extends AbstractCardModifier {
    @Override
    public boolean onBattleStart(AbstractCard card) {
        if (card instanceof AbstractInvincibleCard) {
            return ((AbstractInvincibleCard) card).onBattleStart();
        }
        return false;
    }

    @Override
    public void atEndOfTurn(AbstractCard card, CardGroup group) {
        if (card instanceof AbstractInvincibleCard) {
            ((AbstractInvincibleCard) card).atEndOfTurn(group);
        }
    }

    @Override
    public AbstractCardModifier makeCopy() {
        return new ExhaustAtStartOfCombatMod();
    }
}
